/*
薪水计算器，同01

 */
import java.util.Scanner;
public class SalaryCalculator2 {
    public static void main(String[] args) {
	System.out.println("*****我的薪水计算器*******");
	Scanner s = new Scanner(System.in);
	while (true){
	    System.out.println("请输入月薪：");
	    int monthSalary = s.nextInt();
	    System.out.println("请输入一年的月薪数量：");
	    int months = s.nextInt();
	    int yearSalary = monthSalary*months;
	    System.out.println("年薪为："+yearSalary);
	    
	    
	    if (yearSalary>200000){
		System.out.println("恭喜你超越了98%的国人收入！");
	    }else if (yearSalary>100000){
	        System.out.println("恭喜你超越了90%的国人收入！");
	    }else {
	        System.out.println("还需努力！");
	    }
	    System.out.println("请输入命令：88结束程序，66计算下一个");
	    int comm = s.nextInt();
	    if (comm==88){
	        System.out.println("结束程序！再见！");
	        break;
	    	}else if(comm==66){
	        System.out.println("计算下一个！");
	        continue;
	    }else if(comm!=88&&comm!=66){
	        System.out.println("命令错误，请重新输入！");
	        break;
	    }
	    
	    
	}
	
    }
}
